<?php
class UserModel extends DbTable {

    protected $_pk = 'uid';
    protected $_tableInfo = array(
		'uid','userName','password','lid'
	);
    //protected $_tablePrefix = '';
    //protected $_tableName = 'user';

    public function test(){
        $this->where('uid > 0')->select();
        return $this->getAll();
    }

    public function chang($arr){
        return $this->where(array('uid' => 'eq 0','userName' => 'eq  jjwjw'))->update($arr);
    }

    public function add($arr){
        return $this->insert($arr);
    }

    public function up($wh,$arr){

        return $this->where($wh)->update($arr);
    }

    public function oneData($id){
        return $this->_getOne($id);
    }


}